package model

type CodeError struct {
	Code int
	error
}

func ErrOf(code int, err error) error {
	return &CodeError{
		Code:  code,
		error: err,
	}
}
